package com.zzti.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author zh
 * @since 2021/5/8
 */
@Configuration
@ConfigurationProperties(prefix = "spring.datasource")//读取 application.properties里的内容
public class DataSourceConfig {
    //数据库 url
    private String url;
    //数据库用户名
    private String username;
    //数据库登陆密码
    private String password;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


}
